AsReadOnly Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Provides a read-only view of this list. The returned IList<T> provides a view of the list that prevents modifications to the list. Use the method to provide access to the list without allowing changes. Since the returned object is just a view, changes to the list will be reflected in the view.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual IList<T> AsReadOnly()
Visual Basic (Declaration)
Public Overridable Function AsReadOnly As IList(Of T)
Visual C++
public:
virtual IList<T>^ AsReadOnly ()

Return Value

An IList<T> that provides read-only access to the list.

See Also